package Webservice;

import java.util.ArrayList;
import java.util.List;

import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.xml.ws.Endpoint;

@WebService
public class Webservice {
	@WebMethod(operationName="operationName",action="action",exclude=false)
	public List<String> hello(String name) {
		List<String> list=new ArrayList<String>();
		list.add("a");
		list.add("b");
		list.add("c");
		list.add("d");
		list.add(name);
		return list;
	}

	public static void main(String[] args) {
		// create and publish an endpoint
		//http://localhost:9095/hello?wsdl
		Webservice webservice = new Webservice();
		Endpoint endpoint = Endpoint.publish("http://localhost:9095/hello",
				webservice);
	}
}
